//////////////////////////////////////////////////////////////////////
//
//  THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
//  ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED
//  TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
//  PARTICULAR PURPOSE.
//
// This code is released under the Microsoft Public License.  Please
// refer to LICENSE.TXT for the full text of the license.
//
// Copyright 2012 Guan-Tik Tiunn.  All rights reserved.
// Portions Copyright 2003 Microsoft Corporation.  All rights reserved.
//
// Adapted from the Text Services Framework Sample Code, available under
// the Microsoft Public License from:
//    http://code.msdn.microsoft.com/tsf
//////////////////////////////////////////////////////////////////////


#ifndef PHONE_H
#define PHONE_H

#define PHONE_CIN_FILE	"hanji_utf8.cin"
#define TSU_CIN_FILE	"tsu_utf8.cin"
#define DO_WORD_ERROR (1)
#define MAX_WORD	(60000)
#define MAX_NUMBER	(12000)
#define MAX_BUF_LEN	(4096)
/*
typedef struct {
	unsigned int num[2];
	char keyBuf[ 128 ];
	char word[ 8 ];
} WORD_DATA;
*/
struct WORD_DATA{
	unsigned int num[2];
	char keyBuf[ 128 ];
	char word[ 8 ];
};

struct TSU_DATA{
	char phone[ 128 ];
	char word[ 16 ];
	unsigned int num[2];
};
/*
const int num_of_str=28;
int index_of_str[num_of_str];
char *str[] = {"a","ai","an","ang","au","b","e","g","h","i","j","k","kh","l","m","n","ng","o","ong","oo","p","ph","s","t","th","ts","tsh","u"};
wchar_t *wstr[] = {L"a",L"ai",L"an",L"ang",L"au",L"b",L"e",L"g",L"h",L"i",L"j",L"k",L"kh",L"l",L"m",L"n",L"ng",L"o",L"ong",L"oo",L"p",L"ph",L"s",L"t",L"th",L"ts",L"tsh",L"u"};
*/
#endif